package com.project.bean;

import java.time.LocalDate;

public class MailBean {
    private Integer mailId;//邮件id
    private String title;//主题
    private String content;//内容
    private String url;//地址
    private LocalDate sendDate;//发送时间
    private String senderName;//收件人
    private String status = "有效";//状态（有效、无效）
    private UserBean userBean;//发件人对象

    public MailBean() {
    }

    public MailBean(String title, String content, String url, LocalDate sendDate) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.sendDate = sendDate;
    }

    public MailBean(String title, String content, String url, LocalDate sendDate, String senderName, String status) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.sendDate = sendDate;
        this.senderName = senderName;
        this.status = status;
    }

    public MailBean(String title, String content, String url, LocalDate sendDate, String senderName, String status, UserBean userBean) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.sendDate = sendDate;
        this.senderName = senderName;
        this.status = status;
        this.userBean = userBean;
    }

    public MailBean(String title, String content, String url, LocalDate sendDate, UserBean userBean) {
        this.title = title;
        this.content = content;
        this.url = url;
        this.sendDate = sendDate;
        this.userBean = userBean;
    }

    public Integer getMailId() {
        return mailId;
    }

    public void setMailId(Integer mailId) {
        this.mailId = mailId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public LocalDate getSendDate() {
        return sendDate;
    }

    public void setSendDate(LocalDate sendDate) {
        this.sendDate = sendDate;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public UserBean getUserBean() {
        return userBean;
    }

    public void setUserBean(UserBean userBean) {
        this.userBean = userBean;
    }

    @Override
    public String toString() {
        return "MailBean{" +
                "mailId=" + mailId +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", url='" + url + '\'' +
                ", sendDate=" + sendDate +
                ", senderName='" + senderName + '\'' +
                ", status='" + status + '\'' +
                ", userBean=" + userBean +
                '}';
    }
}
